﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;

public partial class bgData_Zbmsg : System.Web.UI.Page
{
    BLL.BLLData bd = new BLLData();
    public string bmp = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        string repName = "";

        if (Request.QueryString["repName"].ToString() == "zh")
        {
            repName = "综合指标";
            bmp = "zhwh.bmp";
        }
        else if (Request.QueryString["repName"].ToString() == "zhtj")
        {
            repName = "综合指标统计";
            bmp = "zhwh.bmp";
        }
        else if (Request.QueryString["repName"].ToString() == "hc")
        {
            repName = "耗差分值月报表";
            bmp = "耗差分值月报表.jpg";
        }
        else if (Request.QueryString["repName"].ToString() == "dn")
        {
            repName = "电能质量技术监督报表";
            bmp = "电能质量技术监督报表.jpg";
        }
        else if (Request.QueryString["repName"].ToString() == "fz")
        {
            repName = "分值指标";
            bmp = "分值指标日报表.jpg";
        }

        if (!IsPostBack)
        {
            DateTime dt = System.DateTime.Now;

            this.Date1.Value = dt.AddDays(-1).ToString("yyyy-MM-dd");

            string strApp = bd.RetTableByDay(repName);

            this.show.InnerHtml = strApp;
        }
    }
}